package com.hrs.config;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.context.annotation.Configuration;

/**
 * @author 摆渡人
 * @description
 * @date 2023/1/13 2:59
 */
@Configuration
public class JsonModuleConfig extends SimpleModule {

    public JsonModuleConfig(){
        this.addSerializer(Long.class, ToStringSerializer.instance);
        this.addSerializer(Long.TYPE,ToStringSerializer.instance);
        this.addSerializer(long.class,ToStringSerializer.instance);
    }

}
